package io.renren.modules.cgs.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.cgs.dao.CgsQuestionDao;
import io.renren.modules.cgs.entity.CgsQuestionEntity;
import io.renren.modules.cgs.service.CgsQuestionService;



@Service("cgsQuestionService")
public class CgsQuestionServiceImpl implements CgsQuestionService {
	@Autowired
	private CgsQuestionDao cgsQuestionDao;
	
	@Override
	public CgsQuestionEntity queryObject(String id){
		return cgsQuestionDao.queryObject(id);
	}
	
	@Override
	public List<CgsQuestionEntity> queryList(Map<String, Object> map){
		return cgsQuestionDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cgsQuestionDao.queryTotal(map);
	}
	
	@Override
	public void save(CgsQuestionEntity cgsQuestion){
		cgsQuestionDao.save(cgsQuestion);
	}
	
	@Override
	public void update(CgsQuestionEntity cgsQuestion){
		cgsQuestionDao.update(cgsQuestion);
	}
	
	@Override
	public void delete(String id){
		cgsQuestionDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		cgsQuestionDao.deleteBatch(ids);
	}
	
}
